﻿Imports Entidades

Public Class Familia : Implements IEquatable(Of Familia)
    Public Property IdFamilia As String
    Public Property Nombre As String
    Public Sub New()

    End Sub
    Public Sub New(idfamilia As String, nombre As String)
        Me.IdFamilia = idfamilia
        Me.Nombre = nombre
    End Sub
    Public Overloads Function Equals(other As Familia) As Boolean Implements IEquatable(Of Familia).Equals
        Return other IsNot Nothing AndAlso other.IdFamilia = Me.IdFamilia
    End Function
End Class
